package com.chinacoal.microservice.fallback;

import com.chinacoal.microservice.HouseTypeManagementClient;
import com.chinacoal.microservice.pojo.CcmsSmartleasingHouseType;
import com.chinacoal.microservice.util.CodeMsg;
import com.chinacoal.microservice.util.QueryCriteria;
import com.chinacoal.microservice.util.Result;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhuliang
 * @version V1.0
 * @Description: 房源管理-户型管理-异常回退类
 * @date 2020-11-11 11：12
 */
@Component
public class HouseTypeManagementClientFallback implements HouseTypeManagementClient {
    /**
     * @Description: 查询所有的户型信息（带分页），异常回退类
     * @author zhuliang
     * @date 2020/11/11 11:22
     */
    @Override
    public Result<List<CcmsSmartleasingHouseType>> getAllTypes(QueryCriteria queryCriteria, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 根据户型id查询对应的户型信息,异常回退类
     * @author zhuliang
     * @date 2020/11/11 11:56
     */
    @Override
    public Result<CcmsSmartleasingHouseType> getTypeById(String pkHouseTypeId, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 添加户型信息，异常回退类
     * @author zhuliang
     * @date 2020/11/11 13:44
     */
    @Override
    public Result addHouseType(CcmsSmartleasingHouseType houseType, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 修改户型信息，异常回退类
     * @author zhuliang
     * @date 2020/11/11 13:56
     */
    @Override
    public Result updateHouseType(CcmsSmartleasingHouseType houseType, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 根据户型id批量删除户型信息,异常回退类
     * @author zhuliang
     * @date 2020/11/11 14:02
     */
    @Override
    public Result deleteHouseType(String deleteId, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 条件查询（带分页）,异常回退类
     * @author zhuliang
     * @date 2020/11/11 14:37
     */
    @Override
    public Result<List<CcmsSmartleasingHouseType>> getConditionQuery(QueryCriteria queryCriteria, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 根据楼宇id查询户型信息
     * @author zhuliang
     * @date 2020/11/12 17:27
     */
    @Override
    public Result<List<CcmsSmartleasingHouseType>> getHouseTypeByBuildingId(String fkBuildingId, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }
}
